package com.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 长顺
 * @since 2020-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Supplier对象", description="")
public class Supplier implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "supplier_id", type = IdType.ID_WORKER_STR)
    private String supplierId;

    @ApiModelProperty(value = "供应商名字")
    private String supplierName;

    @ApiModelProperty(value = "省市区")
    private String supplierProvinces;

    @ApiModelProperty(value = "充电费（单价xx元/度）")
    private Double supplierRechargeMoney;

    @ApiModelProperty(value = "服务费（单价xx元/度）")
    private Double supplierServeMoney;

    @ApiModelProperty(value = "停车费（固定0元）")
    private Double supplierParkMoney;

    @ApiModelProperty(value = "占用充电桩费用（单价xx元/度）")
    private Double supplierOccupyMonty;

    @ApiModelProperty(value = "负责人联系方式")
    private String supplierContact;

    @ApiModelProperty(value = "状态（0：合作中、1:取消合作,默认0）")
    @TableLogic
    private Integer supplierState;

    @ApiModelProperty(value = "版本")
    @Version
    private Integer supplierVersion;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date supplierCreateTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date supplierModifyTime;


}
